package com.run.cat.api.controller;


import com.run.cat.common.base.BaseResult;
import com.run.cat.dao.entity.Version;
import com.run.cat.service.IVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * App版本 前端控制器
 * </p>
 *
 * @author CG
 * @since 2020-08-19
 */
@Controller
@RequestMapping("/version")
public class VersionController {

    @Autowired
    private IVersionService versionService;

    @RequestMapping("/detail")
    @ResponseBody
    public BaseResult detail(@RequestBody Version version){
        return BaseResult.successData(versionService.queryOne(version));
    }

}
